package ncc.wolfcode.luowowo.mgrsite.controller;


import cn.wolfcode.luowowo.article.query.StrategyThemeQuery;
import cn.wolfcode.luowowo.article.service.IStrategyThemeService;
import com.alibaba.dubbo.config.annotation.Reference;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/strategyTheme")
@Controller
public class StrategyThemeController {
    @Reference
    private IStrategyThemeService strategyThemeService;

    @RequestMapping("/list")
    public String list(Model model,@ModelAttribute("qo") StrategyThemeQuery qo) {
        PageInfo pageInfo = strategyThemeService.query(qo);
        model.addAttribute("pageInfo",pageInfo);
        return "strategyTheme/list";
    }
}
